package com.linwancun.lwcyback.service;

import com.linwancun.lwcyback.mapper.SymptomaticMapper;
import com.linwancun.lwcyback.model.Symptomatic;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SymptomaticServiceImp implements SymptomaticService {
    @Resource
    SymptomaticMapper symptomaticMapper;

    @Override
    public void insert(Symptomatic object) {
        symptomaticMapper.insert(object);
    }

    @Override
    public List<Symptomatic> getAll() {
        return symptomaticMapper.list(new Symptomatic());
    }

    @Override
    public void save(Symptomatic object) {
        symptomaticMapper.updateByPrimaryKey(object);
    }

    @Override
    public Symptomatic find(Symptomatic object) {
        return symptomaticMapper.find(object);
    }

    @Override
    public void delete(Symptomatic object) {
        symptomaticMapper.deleteByPrimaryKey(object.getSymptomaticid());
    }

    @Override
    public List<Symptomatic> getList(Symptomatic object) {
        return symptomaticMapper.list(object);
    }

}
